/**
 * Created by judasnow on 20/06/2017.
 */

import {
    SET_BODY_CLASS
} from '../mutations'


const state = {
    bodyClassName: '',
};

const actions = {
    setBodyClassName ({ commit }, className) {
        commit(SET_BODY_CLASS, {
            className: className
        })
    }
};

const mutations = {
    [SET_BODY_CLASS] (state, { className }) {
        state.bodyClassName = className;
    }
};

export default {
    state,
    actions,
    mutations,
}